home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir38 / vga_doc2.zip / TSENG.TXT < prev    next >
Text File  |  1993-01-22  |  10KB  |  290 lines

  1.     Tseng Super VGA
  2.  
  3.     ET3000-AX   512k 8/16 bit Main chip
  4.       -BX   512k  8 bit
  5.       -Bp   256k  8 bit  Basic chip
  6.     ET4000      1M 8/16 bit
  7.  
  8.     ET4000/X32 will be released in '92 supporting 24bit colors, 4MB DRAM or VRAM
  9.     and built-in accelerator.
  10.  
  11.  
  12.     Registers:
  13.  
  14.  102h: Microchannel Setup Control
  15.  bit 0  Disable Card if set
  16.  
  17.  3BFh (R/W): Hercules Compatability register
  18.  
  19.  3C0h index 16h: ATC Miscellaneous
  20.     (Write data to 3C0h, Read from 3C1h  (May not be needed))
  21.  bit 4,5  High resolution timings.
  22.  
  23.  3C3h (R/W): Microchannel Video Subsystem Enable Register:
  24.  bit 0  Enable Microchannel VGA if set
  25.  
  26.  3C4h index  6  (R/W): Zoom Control   (ET3000 Only)
  27.  bit 0-2  Yzoom factor 0=1:1
  28.      4-6  Xzoom factor 0=1:1
  29.        7  Hardware zoom enabled if set
  30.  
  31.  3C4h index  7  (R/W): TS Auxiliary Mode
  32.  bit 0  (ET3000 Only) Switch Normal Window if set (Text/Graph)
  33.      1  (ET3000 Only) Switch Zoom Window if set (Text/Graph)
  34.      2  (ET3000 Only) Switch Split Window if set (Text/Graph)
  35.      4  (ET3000 Only) If set 8 simultaneous fonts are enabled,
  36.               using bit 3,4,6 of each attribute byte
  37.               to select the font.
  38.    3,5  Rom Bios Enable/Disable:
  39.       0 0  C000-C3FF Enabled
  40.       0 1  Rom disabled
  41.       1 0  C000-C5FF,C680-C7FF Enabled
  42.       1 1  C000-C7FF Enabled
  43.      6  MCLK/2 if set
  44.      7  VGA compatible if set EGA else.
  45.  
  46.  3CBh (R/W): PEL Address/Data Wd
  47.   
  48.  3CDh (R/W): Segment Select
  49.  bit 0-2  (ET3000) 64k Write bank nr
  50.      3-5  (ET3000) 64k Read bank nr
  51.      6-7  (ET3000) Segment Configuration.
  52.              0  128K segments
  53.              1   64K segments
  54.              2  1M linear memory
  55.      0-3  (ET4000) 64k Write bank nr (0..15)
  56.      4-7  (ET4000) 64k Read bank nr (0..15)
  57.  
  58.  3CEh index  Dh (R/W): Microsequencer Mode
  59.  
  60.  3CEh index  Eh (R/W): Microsequencer Reset 
  61.  
  62.  3d4h index 1Bh (R/W): X Zoom Start Address       (ET3000 Only)
  63.  bit 0-7  Offset of Zoom window start in character clocks
  64.       (8 pixels) from left edge
  65.  
  66.  3d4h index 1Ch (R/W): X Zoom End                 (ET3000 Only)
  67.  bit 0-7  Offset of Zoom window end in char clocks from left edge
  68.  
  69.  3d4h index 1Dh (R/W): Y Zoom Start Address       (ET3000 Only)
  70.  bit 0-7  Start line of zoom window bit 0-7
  71.  
  72.  3d4h index 1Eh (R/W): Y Zoom End Address         (ET3000 Only)
  73.  bit 0-7  (ET3000 Only) End line of zoom window bit 0-7
  74.  
  75.  3d4h index 1Fh (R/W): Y Zoom Start and End High  (ET3000 Only)
  76.  bit 0-2  End line of zoom window bit 8-10
  77.      3-5  Start line of zoom window bit 8-10
  78.  
  79.  3d4h index 20h (R/W): Zoom Start Address Low     (ET3000 Only)
  80.  bit 0-7  Zoom Start Address bit 0-7
  81.       Address of Zoom data
  82.  
  83.  3d4h index 21h (R/W): Zoom Start Address Middle  (ET3000 Only)
  84.  bit 0-7  Zoom Start Address bit 8-15
  85.  
  86.  3d4h index 23h (R/W): Extended start ET3000      (ET3000 Only)
  87.  bit 0  Cursor start address bit 16
  88.      1  Display start address bit 16
  89.      2  Zoom start address bit 16
  90.  
  91.  3d4h index 24h (R/W): Compatibility Control
  92.  bit 0  Enable Clock Translate
  93.      1  Additional Master Clock Select
  94.      2  Enable tri-state for all output pins
  95.      3  Enable input A8 of 1MB DRAMs
  96.      4  Reserved
  97.      5  Enable external ROM CRTC translation
  98.      6  Enable Double Scan and Underline Attribute
  99.      7  CGA/MDA/Hercules
  100.  
  101.  3d4h index 25h (R/W): Overflow High ET3000       (ET3000 Only)
  102.  bit 0  Vertical Blank Start bit 10
  103.      1  Vertical Total Start bit 10
  104.      2  Vertical Display End bit 10
  105.      3  Vertical Sync Start bit 10
  106.      4  Line Compare bit 10
  107.    5-6  Reserved
  108.      7  Vertical Interlace if set
  109.  
  110.  3d4h index 32h (R/W): RAS/CAS Video Config
  111.        Ram timing, System clock and Ram type. Sample values:
  112.        00h  VRAM  80nsec
  113.        09h  VRAM 100nsec
  114.        00h  VRAM  28MHz
  115.        08h  VRAM  36MHz
  116.        70h  DRAM  40MHz
  117.  
  118.  3d4h index 33h (R/W): Extended start ET4000  (ET4000 Only)
  119.  bit 0-1  Display start address bits 16-17
  120.      2-3  Cursor start address bits 16-17
  121.       Can be used to ID ET4000
  122.  
  123.  3d4h index 34h (R/W): Compatibility Control Register
  124.  bit 3  if set Video Subsystem Enable Register at 46E8h
  125.           else at 3C3h.
  126.  
  127.  3d4h index 35h (R/W): Overflow High ET4000   (ET4000 Only)
  128.  bit 0  Vertical Blank Start Bit 10
  129.      1  Vertical Total Bit 10
  130.      2  Vertical Display End Bit 10
  131.      3  Vertical Sync Start Bit 10
  132.      4  Line Compare Bit 10
  133.      5  Gen-Lock Enabled if set (External sync)
  134.      6  Read/Modify/Write Enabled if set. Currently not implemented.
  135.      7  Vertical interlace if set
  136.  
  137.  3d4h index 36h (R/W): Video System Configuration 1
  138.  bit 3  16 bit wide fonts if set, else 8 bit wide
  139.      4  (ET4000 Only) Linear addressing if set
  140.     Video Memory is mapped as a 1 Meg block above 1MB.
  141.      6  16 bit data path (video memory) if set
  142.      7  16 bit data (I/O operations) if set
  143.  
  144.  3d4h index 37h (R/W): Video System Configuration 2
  145.  bit 0-1  Memory size  0,1=256k, 2=512k, 3=1M   ???
  146.        3  Clear if 64kx4 RAMs                   ???
  147.       if set RAM size = (bit 0-1)*256k
  148.         else RAM size = (bit 0-1)* 64k
  149.        4  16 bit ROM access if set
  150.        5  Memory bandwidth (0 better than 1) ???
  151.        7  VRAM installed if set DRAM else.
  152.    bit 6? Block read ahead (BRA)  if clear
  153.  
  154.  3d4h index 3Fh (R/W):
  155.  bit   7  This bit seems to be bit 8 of the CRTC offset register (3d4h index 13h).
  156.  
  157.  3d8h (R/W): Display Mode Control
  158.  
  159.  46E8h (R):  Video Subsystem Enable Register
  160.  bit   3  Enable VGA if set
  161.  
  162.  
  163.        3C4h index 05 used.
  164.  
  165.  
  166.   Bank Switching:
  167.  
  168.      64k banks are selected by the Segment Select Register at 3CDh.
  169.      Both a Read and a Write segment can be selected.
  170.  
  171.   Hardware Zoom (ET3000 Only).
  172.  
  173.      The ET3000 can zoom a part of display memory in a window.
  174.      The display memory position and window position are selected
  175.      by 3d4h index 1Bh to 21h.
  176.  
  177.  
  178.   Identify Tseng Chipset:
  179.  
  180.      outp($3BF,3);
  181.      outp($3D8,$A0);   {Enable ET4000 extensions}
  182.      if tstrg($3CD,$3f) then
  183.        if testinx2(base,$33,$f) then Tseng 4000
  184.                 else Tseng 3000;       
  185.  
  186.  
  187.   Video Modes:
  188.      8   T   132   25   2                   (STB only)
  189.      Ah  T   132   44   2
  190.  
  191.     18h  T   132   44   4  (8x8)   B000
  192.     19h  T   132   25   4  (9x14)  B000
  193.     1Ah  T   132   28   4  (9x13)  B000
  194.     22h  T   132   44  16  (8x8)
  195.     23h  T   132   25  16  (8x14)
  196.     24h  T   132   28  16  (8x13)
  197.     25h  G   640  480  16  planar
  198.     26h  T    80   60  16  (8x8)
  199.     27h  G   720  512  16  planar           (Tseng recommended, few boards)
  200.     29h  G   800  600  16  planar
  201.     2Ah  T   100   40  16  planar
  202.     2Dh  G   640  350 256  packed
  203.     2Eh  G   640  480 256  packed
  204.     2Fh  G   640  400 256  packed           (ET4000 Only)
  205.     2Fh  G   720  512 256  packed           (Tseng recommended, few boards)
  206.     30h  G   800  600 256  packed
  207.     36h  G   960  720  16  planar           (STB only)
  208.     37h  G  1024  768  16  planar
  209.     38h  G  1024  768 256  packed           (ET4000 Only)
  210.     3Dh  G  1280 1024  16  planar           (newer ET4000s)
  211.     3Eh  G  1280  960  16  planar           (Definicon)
  212.     3Eh  G   640  480 32k  Sierra 15-bit    (Compaq Qvision)
  213.  
  214.  
  215.  
  216.    BIOS extensions  (Tseng 4000 Sierra HiColor DAC):
  217.  
  218. ----------1010E0-----------------------------
  219. INT 10 - VIDEO - SpeedStar 24 - SET TrueColor GRAPHICS MODE
  220.     AX = 10E0h
  221.     BL = 2Eh    
  222. Return: AX = 0010h if successfull
  223.          other on error
  224. Enters 24bit 640x480 mode if SS24 DAC present.
  225. Video memory is NOT cleared.
  226. Each line uses 2048 bytes with only 640x3=1920 bytes actually used.
  227. So that a line can never cross a 64K border.
  228. ----------1010F0-----------------------------
  229. INT 10 - VIDEO - Tseng ET-4000 BIOS - SET HiColor GRAPHICS MODE
  230.     AX = 10F0h
  231.     BL = video mode (see also AH=00h)
  232.          32768-color modes:
  233.            13h = 320x200
  234.            2Dh = 640x350
  235.            2Eh = 640x480
  236.            2Fh = 640x400
  237.            30h = 800x600
  238.            3Eh = 640x480 16M colors  (Genoa 7900)
  239.          16M color modes:
  240.            3Eh = 640x480   (Genoa 7900) 
  241.     BX =     2DFFh = 640x350   (MEGAVGA/2)
  242.          2EFFh = 640x480   (MEGAVGA/2)
  243.          2FFFh = 640x400   (MEGAVGA/2)
  244. Return: AX = 0010h if successful
  245.          other on error
  246. SeeAlso: AX=10F1h
  247. ----------1010F1-----------------------------
  248. INT 10 - VIDEO - Tseng ET-4000 BIOS - GET DAC TYPE
  249.     AX = 10F1h
  250. Return: AX = 0010h if successful, errorcode if not
  251.     BL = type of digital/analog converter
  252.          00h normal VGA DAC
  253.          01h Sierra SC1148x HiColor DAC
  254.  
  255.      (Diamond SpeedStar 24:)
  256.          02h New SS24 DAC  (16M colors)
  257.  
  258.      (MEGAVGA/2 BIOS:)
  259.          02h Sierra Mark2 (15-bit) or Mark3 (16-bit) DAC  
  260.          03h ATT20c491 or 492 15/16/24 bit HiColor DAC
  261.          04h AcuMos ADAC1 (15/16/24 bit)
  262.        else other HiColor DAC
  263. SeeAlso: AX=10F0h
  264. ----------1010F2-----------------------------
  265. INT 10 - VIDEO - Tseng ET-4000 BIOS - GET/SET HiColor MODE
  266.     AX = 10F2h
  267.     BL = 00h  Get current HiColor mode
  268.          01h  Set 15bit HiColor mode
  269.          02h  Set 16bit HiColor mode
  270. Return: AX = 0010h if successfull, errorcode if not
  271.     BL = Current HiColor mode:
  272.          00h  Not in HiColor mode or not a HiColor DAC
  273.          01h  15-bit RGB mode
  274.          02h  16-bit RGB mode
  275.          03h  24-bit RGB mode  
  276.  
  277. Note: Set HiColor mode (BL=1 or 2) only works if already in some HiColor mode.
  278.  
  279.  
  280. Notes:
  281.   The sequence: 
  282.  
  283.       port[$3BF]:=3;
  284.       port[$3D8]:=$A0;
  285.  
  286. is apparently needed to enable the extensions in the Tseng 4000.
  287. Most BIOSes do this by default, but some such as the Sigma VGA Legend
  288. requires this sequence.
  289. Let me know if you encounter any other examples.
  290.